-- GENERATED SPELL FOR [Nelson the Nice] --


function spell0_14536(pUnit, Event) --@Creeping Doom,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(23589,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_14536', 1, 1)
end

function spell1_14536(pUnit, Event) --@Soul Flame,Self--
pUnit:FullCastSpellOnTarget(23272,pUnit)
pUnit:RegisterEvent('Sorts_14536', 666, 1)
end

function Sorts_14536(pUnit, Event)
local choix_sorts_14536 = math.random(0, 1)
if choix_sorts_14536 == 0 then
pUnit:RegisterEvent('spell0_14536', 1, 1)
end
if choix_sorts_14536 == 1 then
pUnit:RegisterEvent('spell1_14536', 1, 1)
end
end

function mob14536_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14536', math.random(1500, 3000), 1)
end

function mob14536_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14536_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14536_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14536, 1, 'mob14536_Action')
RegisterUnitEvent(14536, 2, 'mob14536_Leave')
RegisterUnitEvent(14536, 3, 'mob14536_Kill')
RegisterUnitEvent(14536, 4, 'mob14536_Die')
